﻿namespace Huayou.UI.WebControls
{
    using System;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;

    public class Form : HtmlForm
    {
        protected override void RenderAttributes(HtmlTextWriter writer)
        {
            writer.WriteAttribute("name", this.Name);
            base.Attributes.Remove("name");
            writer.WriteAttribute("method", base.Method);
            base.Attributes.Remove("method");
            base.Attributes.Remove("action");
            base.Attributes.Render(writer);
            if (base.ID != null)
            {
                writer.WriteAttribute("id", base.ClientID);
            }
        }
    }
}

